package com.example.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.infrastructure.common.BasePO;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 健康档案表 PO
 *
 * @author wangal
 * @since 2025-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("health_records")
@Schema(name = "HealthRecords", description = "健康档案表")
public class HealthRecords extends BasePO {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "身高(cm)")
    @TableField("height")
    private BigDecimal height;

    @Schema(description = "体重(kg)")
    @TableField("weight")
    private BigDecimal weight;

    @Schema(description = "血型")
    @TableField("blood_type")
    private String bloodType;

    @Schema(description = "过敏史")
    @TableField("allergies")
    private String allergies;

    @Schema(description = "既往病史")
    @TableField("medical_history")
    private String medicalHistory;

    @Schema(description = "紧急联系人")
    @TableField("emergency_contact")
    private String emergencyContact;

    @Schema(description = "紧急联系电话")
    @TableField("emergency_phone")
    private String emergencyPhone;

    @Schema(description = "租户编号")
    @TableField("tenant_id")
    private Long tenantId;


}